package com.dsr.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author dsr
 * @date 2020-06-29
 **/
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FlowerBean implements Serializable {
    private String id;
    private String title;
    private String description;
    private Double price;
    private Double oldPrice;
    private Long collectNumber;
    private String section;
    private Integer number;
    private Long sales;
    private String imgUrl;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date queryDate;
    @Transient
    private List<String> imgUrlList =new ArrayList<>();

    private int count;
}
